import api from '@/service/api';

export type Params = {
  title: string;
  banner: string;
  content: string;
  simpleContent: string;
}

/*
* 新建文章
* */
export default (params: Params): Promise<any> => {
  return api.post('/admin/add-article', params);
}
